<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>小鹰健康服务平台</title>
    <!--标题logo-->
    <link rel="shortcut icon" href="../../img/favicon.png">
    <link rel="stylesheet" href="../../css/base.css">
    <link rel="stylesheet" href="../../css/home.css">
    <link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
    <link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
    <link rel="stylesheet" type="text/css" href="../../css/new-document.css">
    <link rel="icon" href="" type="image/x-icon">
    <link rel="shortcut icon" href="" type="image/x-icon">
    <script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
    <script src="../../js/highcharts.js"></script>
    <script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
    <script src="../../js/index.js"></script>
    <script src="../../js/new-document.js"></script>
    <script src="../../js/bootstrapValidator.js"></script>
</head>
<body>
<!--公用头部-->
<div class="head">
    <div class="head-con">
        <div class="head-left"><img src="../../img/logo.png"></div>
        <div class="head-dh">
            <ul>
                <li class="glyphicon glyphicon-home home ah"><a class="head-dh-a" href="../../index.html" >首页</a></li>
                <li class="glyphicon glyphicon-heart service btn-group ah">
                    <a class="head-dh-a active" data-toggle="dropdown" style="cursor: pointer;">
                        健康服务
                    </a>
                    <ul class="dropdown-menu service-word">
                        <li>
                            <h4>档案中心</h4>
                            <span><a href="../../templates/archives/new-archives.html" class="archives menu-a">个人档案管理</a></span>
                            <span><a href="../../templates/health/chronic.html" class="menu-a">慢性病人群管理</a></span>
                        </li>
                        <li>
                            <h4>就诊信息</h4>
                            <span><a href="" class="menu-a">门诊信息</a></span>
                            <span><a href="" class="menu-a">住院信息</a></span>
                        </li>
                        <li>
                            <h4>体检信息</h4>
                            <span><a href="" class="menu-a">体检信息-管理</a></span>
                            <span><a href="" class="menu-a">体检信息-新增</a></span>
                        </li>
                        <li>
                            <h4>随访管理</h4>
                            <span><a href="" class="menu-a">常规随访</a></span>
                            <span><a href="" class="menu-a">慢性随访</a></span>
                            <span><a href="" class="menu-a">满意度调查</a></span>
                            <span><a href="" class="menu-a">统计分析</a></span>
                        </li>
                        <li>
                            <h4>行政区域管理</h4>
                            <span><a href="../../templates/health/area.html#?/apis/baseRegion/regionGrade/1" class="menu-a">行政区</a></span>
                        </li>
                        <li>
                            <h4>权限管理</h4>
                            <span><a href="../../templates/admin/role.html" class="menu-a">角色管理</a></span>
                            <span><a href="../../templates/admin/user.html" class="menu-a">用户管理</a></span>
                        </li>
                    </ul>
                </li>
                <li class="glyphicon glyphicon-file jk ah"><a class="head-dh-a" onclick="sessionStorage.removeItem('user')" href="../../templates/document/new-document1.html">新建文档</a></li>
            </ul>
            <div class="health">
                <div class="health-1">
                    <h3>档案中心</h3>
                    <span>个人档案管理</span>
                    <span>慢性病人群管理</span>
                </div>
                <div class="health-1">
                    <h3>就诊信息</h3>
                    <span>门诊信息</span>
                    <span>住院信息</span>
                </div>
                <div class="health-1">
                    <h3>体检信息</h3>
                    <span>体检信息-管理</span>
                    <span>体检信息-新增</span>
                </div>
                <div class="health-1 onbot">
                    <h3>随访管理</h3>
                    <span>常规随访</span>
                    <span>慢性随访</span>
                    <span>满意度调查</span>
                    <span>统计分析</span>
                </div>
            </div>
        </div>
        <!--右边用户-->
        <div class="head-right">
            <div class="head-admin">
                当前用户:王五
            </div>
            <div class="dropdown head-admin2 ">
                <button type="button" class="btn dropdown-toggle" id="dropdownMenu1"
                        data-toggle="dropdown">
                    用户
                    <span class="caret"></span>
                </button>
                <ul class="dropdown-menu" role="menu" aria-labelledby="dropdownMenu1">
                    <li role="presentation">
                        <a role="menuitem" tabindex="-1" href="#">用户信息</a>
                    </li>
                    <li role="presentation">
                        <a role="menuitem" tabindex="-1" href="#">账号安全</a>
                    </li>
                    <li role="presentation">
                        <a role="menuitem" tabindex="-1" onclick="logout()">退出账号</a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
</div>
<!--公用头部end-->
<!--内容部分-->
<div class="content2">
    <div class="new-left">
        <ul>
            <li class="updata"><a href="new-archives-da1.html">个人信息</a></li>
            <li class="updata"><a href="new-archives-da2.html">基本信息</a></li>
            <li class="updata"><a href="new-archives-da3.html">既往史</a></li>
            <li class="updata "><a href="new-archives-da4.html">过敏史</a></li>
            <li class="updata on"><a href="new-archives-da5.html">个人史</a></li>
            <li class="updata  yjs"><a href="new-archives-da6.html">月经及婚育史</a></li>
            <li class="updata"><a href="new-archives-da7.html">家族史</a></li>
            <li class="updata Chronic1"><a href="new-archives-da9.html">高血压情况</a></li>
            <li class="updata Chronic2"><a href="new-archives-da10.html">糖尿病情况</a></li>
            <li class="updata Chronic3"><a href="new-archives-da11.html">肺结核情况</a></li>
            <li class="updata Chronic4"><a href="new-archives-da12.html">精神病情况</a></li>
        </ul>
    </div>
    <div class="new-right">
        <ul>
            <!--个人史-->
            <li class="on">
                <div class="perso-info-w-all-ck">
                    <dl class="word-3-ck">
                        <dt class="perso-info-w-ck">
                            <span class="word-3-ck-huan">饮酒：</span>
                            <label id="grswt_yj" class="word-2-ck-huan-1">否</label>
                        </dt>
                        <dt class="perso-info-w-ck grswt_yj" hidden>
                            <span class="word-3-ck-huan">饮酒类型：</span>
                            <label id="grswt_yj_1" class="word-2-ck-huan-1" style="width: 52px;"></label>
                            <span class="word-3-ck-huan" style="width: 70px;">饮酒量：</span>
                            <label id="grswt_yj_2" class="word-2-ck-huan-1" style="width: 77px;"></label>
                        </dt>
                    </dl>
                    <dl class="word-3-ck">
                        <dt class="perso-info-w-ck ">
                            <span class="word-3-ck-huan">吸烟：</span>
                            <label id="grswt_xy" class="word-2-ck-huan-1">否</label>
                        </dt>
                        <dt class="perso-info-w-ck grswt_xy" hidden>
                            <span class="word-3-ck-huan">吸烟量：</span>
                            <label id="grswt_xy_1" class="word-2-ck-huan-1"></label>
                        </dt>
                    </dl>
                    <dl class="word-3-ck">
                        <dt class="perso-info-w-ck">
                            <span class="word-3-ck-huan">疫水、疫区接触史：</span>
                            <label id="grswt_ysyqjc" class="word-2-ck-huan-1">否</label>
                        </dt>
                        <dt class="perso-info-w-ck grswt_ysyqjc" hidden>
                            <span class="word-3-ck-huan">疫区：</span>
                            <label id="grswt_ysyqjc_1" class="word-2-ck-huan-1"></label>
                        </dt>
                    </dl>
                    <dl class="word-3-ck">
                        <dt class="perso-info-w-ck">
                            <span class="word-3-ck-huan">毒物接触史：</span>
                            <label id="grswt_dwjcs" class="word-2-ck-huan-1">否</label>
                        </dt>
                        <dt class="perso-info-w-ck grswt_dwjcs" hidden>
                            <span class="word-3-ck-huan">毒物：</span>
                            <label id="grswt_dwjcs_1" class="word-2-ck-huan-1"></label>
                        </dt>
                    </dl>
                    <dl class="word-3-ck">
                        <dt class="perso-info-w-ck ">
                            <span class="word-3-ck-huan">放射性物质接触史：</span>
                            <label id="grswt_fsxwzjc" class="word-2-ck-huan-1">否</label>
                        </dt>
                        <dt class="perso-info-w-ck grswt_fsxwzjc" hidden>
                            <span class="word-3-ck-huan">放射性物质：</span>
                            <label id="grswt_fsxwzjc_1" class="word-2-ck-huan-1"></label>
                        </dt>
                    </dl>
                    <dl class="word-3-ck">
                        <dt class="perso-info-w-ck">
                            <span class="word-3-ck-huan">冶游史：</span>
                            <label id="grswt_zys" class="word-2-ck-huan-1">否</label>
                        </dt>
                    </dl>
                    <dl class="word-3-ck">
                        <dt class="perso-info-w-ck">
                            <span class="word-3-ck-huan">性病：</span>
                            <label id="grswt_xb" class="word-2-ck-huan-1">否</label>
                        </dt>
                        <dt class="perso-info-w-ck grswt_xb" hidden>
                            <span class="word-3-ck-huan">性病名称:</span>
                            <label id="grswt_xb_1" class="word-2-ck-huan-1"></label>
                        </dt>
                    </dl>
               </div>
            </li>
        </ul>
    </div>
</div>

<script>
    /*新建文档*/
    var work = new FindSure();
    work.init();
</script>

<!--内容部分end-->
<!--Foot-->
<div class="foot">
    <div class="foot-border">Copyright &copy; 2017-2020 Yinghai Software Co., Ltd, Technical Support<br>
        鹰海医疗信息技术有限公司 技术支持</div>
</div>
<!--Foot end-->
<script>
    $(function(){
        queryGRS();
    });
    var drink= {
        d1:"白酒",
        d2:"啤酒",
        d3:"米酒",
        d4:"其他"
    }
    // 查询
    function queryGRS(){
        var id = sessionStorage.getItem("user");
        $.ajax({
            url:"/apis/filePersonalHistoryInfo/"+id,
            dataType:"json",
            success:function(data){
                if (data.returnFlag != 0) {
                    alert( data.message);
                }else{
                    console.log(data.data);
                    writeInfo(data.data);
                }
            }
        })
    };
    //写入信息
    function writeInfo(rows){
        for(var i =0;i<rows.length;i++){
            var row  = rows[i];
            if(row["answerText"] == null || row["answerText"] == undefined){
                row["answerText"] = "(空)";
            }
            $("."+row["requestId"].trim()).show();
            $("#"+row["requestId"].trim()).html("是");
            if(row["requestId"].trim() == "grswt_yj"){
                var an =row["answerText"].split("_");
                if(an.length < 2) an=["(空)","(空)"];
                $("#"+row["requestId"].trim()+"_1").html(drink["d"+an[0]]);
                $("#"+row["requestId"].trim()+"_2").html(an[1]);
            }else{
                $("#"+row["requestId"].trim()+"_1").html(row["answerText"]);
            }
        }

    };
</script>
</body>
</html>